package cn.edu.jiangnan.cashmanagement.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 部门表
 * */
@Entity
@Table(name = "department_tbl")
public class DepartmentEntity implements Serializable
{
	private static final long	serialVersionUID	= 1660690831970338958L;

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long	departmentId;

	@Column(name = "parent_id")
	private String	parentId;

	@Column(name = "departmentname", length = (int) 255, nullable = false)
	private String	departmentName;

	@Column(name = "departmentnumber", length = (int) 255)
	private String	departmentNumber;

	@Column(name = "description", length = (int) 255)
	private String	description;//部门简介

	@Column(name = "level")
	private Integer	level; //部分等级

	@Column(name = "status", length = (int) 1)
	private String	status;//部门状态(0：关闭；1：启动)

	@Column(name = "child", length = (int) 1)
	private String	child;//子部门标志(0:无下属部门；1:有)

	@Column(name = "delTag", length = (int) 1)
	private String	delTag;//删除标志(0:删除;1:启动)

	@Column(name = "sortNo")
	private Integer	sortNo;//排序序列

	public Long getDepartmentId()
	{
		return departmentId;
	}

	public void setDepartmentId(Long departmentId)
	{
		this.departmentId = departmentId;
	}

	public String getParentId()
	{
		return parentId;
	}

	public void setParentId(String parentId)
	{
		this.parentId = parentId;
	}

	public String getDepartmentName()
	{
		return departmentName;
	}

	public void setDepartmentName(String departmentName)
	{
		this.departmentName = departmentName;
	}

	public String getDepartmentNumber()
	{
		return departmentNumber;
	}

	public void setDepartmentNumber(String departmentNumber)
	{
		this.departmentNumber = departmentNumber;
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public Integer getLevel()
	{
		return level;
	}

	public void setLevel(Integer level)
	{
		this.level = level;
	}

	public String getStatus()
	{
		return status;
	}

	public void setStatus(String status)
	{
		this.status = status;
	}

	public String getChild()
	{
		return child;
	}

	public void setChild(String child)
	{
		this.child = child;
	}

	public String getDelTag()
	{
		return delTag;
	}

	public void setDelTag(String delTag)
	{
		this.delTag = delTag;
	}

	public Integer getSortNo()
	{
		return sortNo;
	}

	public void setSortNo(Integer sortNo)
	{
		this.sortNo = sortNo;
	}
}
